<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

	标题：
	<input id="title" />
	<script id="container" type="text/plain"
		style="height: 600px; width: 1000px">
            这里写你的初始化内容
        </script>
	<button id="submit">递交</button>
	<script type="text/javascript"
		src="ueditor/third-party/jquery-1.10.2.js"></script>
	<!-- 配置文件 -->
	<script type="text/javascript" src="ueditor/ueditor.config.js"></script>
	<!-- 编辑器源码文件 -->
	<script type="text/javascript" src="ueditor/ueditor.all.js"></script>
	<!-- 实例化编辑器 -->
	<script type="text/javascript">
        var editor = UE.getEditor('container');
        $("#submit").click(function(){
        	var title = $("#title").val();
            var data = editor.getContent();
            $.ajax({
                cache: true,
                type: "post",
                url: "UeditorDemoServlet",
    　　　　　　　　data: {
    　　　　　　　　　data: data,
            	  title:title
    　　　　　　　　},
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(){
                    alert("success");
                }
            });
        });
    </script>
</body>
</html>